package com.lagou.java.sqlSession;

import com.lagou.java.pojo.Configration;
import lombok.*;

import javax.xml.bind.PrintConversionEvent;

@ToString
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configration configration;


    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configration);
    }
}
